package org.carl.java.obj;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.stream.Stream;

public class ArrayListRemoveTest2 {
	public static void main(String[] args) {
		List<Character> datas = new ArrayList<Character>();
		for (int i = 0; i < 100; i++) {
			datas.add(Char.getRandomChar());
		}
		Stream<Character> stream=datas.stream().filter(p -> p.charValue()!='C');
		stream.forEach((a)->{
			System.out.print(a+"  ");
		});
	}

	static class Char {
		static char[] ziMu = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
				'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' };

		static char getRandomChar() {
			return ziMu[new Random().nextInt(ziMu.length)];
		}
	}
}
